package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单回复
 * </p>
 *
 * @author long
 * @since 2025-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_work_order_reply")
public class WorkOrderReplyDo extends Model<WorkOrderReplyDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("work_order_id")
    private Long workOrderId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 来源 1客户上传 2仓库上传
     */
    @TableField("origin")
    private Integer origin;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 附件id
     */
    @TableField("file_ids")
    private String fileIds;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
